﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Untils
{
    public static class DriveInfoExtension
    {
        public static IEnumerable<String> EnumerateFiles(this DriveInfo drive)
        {
            return new FileSearch().EnumerateFiles(drive.Name);
        }

        public static string GetPathByFile(this DriveInfo drive, string _filename)
        {
            return new FileSearch().EnumerateFiles(drive.Name, _filename);
        }
    }
}
